﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="danhsachkhachhang.aspx.cs" Inherits="Admin_danhsachkhachhang" Title="Danh sách khách hàng" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">
    <h2  style="color:Blue; text-align: center;">
         <i>
            <u><span style="font-size: 20pt; font-family: VNI-Thufap2">Menu</span></u>
         </i>
     </h2>
        <ul>
            <li><a href="SanPham_List.aspx">Danh sách sản phẩm</a></li>
            <li><a href="NhanVien_List.aspx">Danh sách nhân viên</a></li>
            <li><a href="danhsachkhachhang.aspx">Danh sách khách hàng</a></li>
            <li><a href="Deal_List.aspx">Danh sách deals</a></li>
            <li><a href="danhsachdanhmuc.aspx">Danh sách danh mục</a></li>
        </ul>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;font-size: 10pt; font-family: Tahoma">
 <div>
        <div class="title" align="center"><strong>DANH SÁCH KHÁCH HÀNG</strong></div>
        <div style="width:100%;">
            <div style="display:table-cell; width:70%;float:left;">
                Tên kh:
                <asp:TextBox ID="txt_tenkh" runat="server" Width="77px"></asp:TextBox>
                Mã kh:
                <asp:DropDownList ID="ddl_Makh" runat="server">
                </asp:DropDownList>
                &nbsp;
                <asp:Button ID="btn_Search" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click"  />
            </div>
            <div class="addnewrow" style="display:table-cell; width:25%;float:right;">
                    <a href="themmoikhachhang.aspx">Thêm khách hàng mới</a> | 
                <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click">Xóa</asp:LinkButton>
            </div>           
        </div>
        <div>
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                <thead>
                    <tr class="listtableheader">
                        <th>Mã kh</th>
                        <th>Email</th>
                        <th>Mật khẩu</th>
                        <th>Họ tên kh</th>
                        <th>Ngày sinh</th>
                        <th>Giới tính</th>
                        <th>Địa chỉ</th>
                        <th>Điện thoại</th>
                        <th>Số tk</th>
                        <th>Sửa</th>
                        <th>
                            <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                            <a href="javascript:CheckAll(2)">Chọn hết</a>
                        </th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr>
                <td><%#Eval("makh") %></td>
                <td><%#Eval("email") %></td>
                <td><%#Eval("matkhau") %></td>
                <td><%#Eval("hotenkh") %></td>
                <td><%#Eval("ngaysinh") %></td>
                <td><%#Eval("gioitinh") %></td>
                <td><%#Eval("diachi") %></td>
                <td><%#Eval("dienthoai") %></td>
                <td><%#Eval("sotaikhoan") %></td>
                <td><asp:HyperLink ID="hpl_Edit" Text="Edit" runat="server" /></td>
                <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                     <asp:HiddenField ID="hf_id" Value='<%#Eval("makh") %>' runat="server" />
                </td>
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater>  
        </div>
        <div style="width:100%;"> 
            <div style="float:left;">               
            
            </div>
            <cc1:PagerV2_8 ID="Pager" runat="server" />
        </div>
 </div>
 </div>
</asp:Content>

